const mongoose = require('mongoose')

mongoose.connect('mongodb://127.0.0.1:27017/news-cube')

mongoose.connection.once('open', () => {
    console.log('mongodb has been connected');
})